package com.itheima.chapter01.method;

import java.util.Scanner;

/*
    方法：奇偶判断
 */
public class demo2 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入你要判断得数：");
        int i=sc.nextInt();
        ab(i);
    }
    public static void ab(int i){
        if(i %2 == 0){
            System.out.println("偶数");
        }else{
            System.out.println("奇数");
        }
    }
}
